numpy evenly spaced numbers

31

np.linspace(0, 10, 5)  # evenly-spaced 5 numbers in [0, 10]
# [ 0. ,  2.5,  5. ,  7.5, 10. ]

Comments

Submit
0 Comments